import $http from "../assets/js/http";
// 房间查询
export async function room_select({
  AR_number,
  SSL_number,
  SS_dormsex,
  SS_number,
  SS_bednumber,
  page
}) {
  return $http.post("Dorm/Dorm/room_select", {
    AR_number,
    SSL_number,
    SS_dormsex,
    SS_number,
    SS_bednumber,
    page
  });
}
//新增房间
export async function room_insert({
  AR_number,
  SSL_number,
  SS_floor,
  SS_number,
  SS_roomtype,
  SS_dormsex,
  SS_bednumber,
  SS_cabinet,
  SS_status,
  SS_temporary,
  SS_cost,
  SS_costman
}) {
  return $http.post("Dorm/Dorm/room_insert", {
    AR_number,
    SSL_number,
    SS_floor,
    SS_number,
    SS_roomtype,
    SS_dormsex,
    SS_bednumber,
    SS_cabinet,
    SS_status,
    SS_temporary,
    SS_cost,
    SS_costman
  });
}
//修改房间信息
export async function room_update({
  AR_number,
  SSL_number,
  SS_floor,
  SS_number,
  SS_number1,
  SS_roomtype,
  SS_dormsex,
  SS_bednumber,
  SS_cabinet,
  SS_status,
  SS_temporary,
  SS_cost,
  SS_costman
}) {
  return $http.post("Dorm/Dorm/room_update", {
    AR_number,
    SSL_number,
    SS_floor,
    SS_number,
    SS_number1,
    SS_roomtype,
    SS_dormsex,
    SS_bednumber,
    SS_cabinet,
    SS_status,
    SS_temporary,
    SS_cost,
    SS_costman
  });
}
//删除房间
export async function room_delete(AR_number, SSL_number, SS_number) {
  return $http.post("Dorm/Dorm/room_delete", {
    AR_number,
    SSL_number,
    SS_number
  });
}
